package designpattern.bridge;

public class Client {
    public static void main(String[] args) {
        Phone phone = new FoldedPhone(new XiaoMi());
        phone.open();
        phone.close();
        phone.call();
        System.out.println("====================");
        Phone phone1 = new FoldedPhone(new HuaWei());
        phone1.open();
        phone1.close();
        phone1.call();
        System.out.println("====================");
        Phone phone2 = new UpRightPhone(new HuaWei());
        phone2.open();
        phone2.close();
        phone2.call();
    }
}
